﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fitnessCenter.aspx.cs" Inherits="happroject.fitnessCenter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Fitness Center (HAP Project)</title>
     <style type="text/css">
         .centered {
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          margin: auto;
        } 
         .style1
         {}
     </style>
</head>
<body style="font-family: 'Trebuchet MS'; font-size: x-small; color:#8C0204; text-align: left;" 
    background="images/hdFitness.gif">
<div class="centered">
    <form id="form1" runat="server">
    <div class="style1">
    <p style="text-align: left"> 
               <asp:ImageButton ID="imgCerrarPestania" runat="server" 
                   ImageUrl="images/tabsFitness.jpg"  
                   onclick="imgCerrarFitness_Click" style="text-align: right" />
        </p>
        <p class="style1"> &nbsp;</p>
    <center>
    <center>
        <% 
        string[] youtubeVideos = new string[] 
        {
            "vOqzBNMj4-4", "uEYvmHg3Pw0", 
            "jzs6B5w5QFs", "_G0RrDVpOZ4", 
            "ll9Ta3A__fU", "TymW8YXGZGc", 
            "uJP04wQVH30", "Z3EqzY3bV9I" 
        };

        
        Random random = new Random();
        int randomNumber = random.Next(0, 7);
        

        string saltoUrl = "src=\"http://www.youtube.com/embed/" + youtubeVideos[randomNumber] + "?autoplay=1&vq=low&controls=0\"";

        Response.Write("<iframe class=\"youtube-player\" type=\"text/html\" width=\"245\" height=\"150\"" + saltoUrl + " frameborder=\"0\">");
        Response.Write("</iframe>");
        %>

            <p class="style1">
                &nbsp;</p>
    <center>
    <center>
    <center>
    <center>
    <center>
    <center>
    <center>
        <p>
               &nbsp;</p>
            </div>
        </center>
        </center>
        </center>
        </center>
        </center>
        </center>
        </center>
        </center>
        </center>
    </form>
    </div>
</body>
</html>
